<nav class="navbar navbar-default">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <a class="navbar-brand" href="/">五朱de博客</a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li class="{{Request::is('/') ? 'active': ''}}"><a href="/">主页 <span class="sr-only">(current)</span></a></li>
        <li class="{{Request::is('blog') ? 'active': ''}}"><a href="/blog">博文</a></li>
        <li class="{{Request::is('contact') ? 'active': ''}}"><a href="/contact">联系我</a></li>
        <li class="{{Request::is('about') ? 'active': ''}}"><a href="/about">关于我</a></li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
@if(Auth::check())
<li class="dropdown">
  <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">你好! {{ Auth::user()['name'] }} <span class="caret"></span></a>
  <ul class="dropdown-menu">
    <li><a href="/post">博文列表</a></li>
    <li><a href="/category">分类列表</a></li>
    <li><a href="/tag">标签列表</a></li>
    <li role="separator" class="divider"></li>
    <li><a href="/auth/logout">退出</a></li>
  </ul>
</li>
@else
<a href="{{ route('login') }}" class="btn btn-default" style="margin-top:5px">登录</a>
@endif

      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>
